public class Graduate {
    //模拟大学生考试的简单情况
    public String name;
    public int age;
    private double score;//成绩

    public void testing(){
        System.out.println("小学生" + name + "正在考小学数学..");
    }
    public void setScore(double score) {
        this.score = score;
    }
    public void showInfo(){
        System.out.println("学生名字" + name + " age=" + age
                + " 成绩为" + score);
    }
}
